package top.marken.onlineclass.dao;

import org.apache.ibatis.annotations.Param;
import top.marken.onlineclass.model.entity.VideoOrder;

import java.util.List;

public interface VideoOrderMapper {
    VideoOrder findByVideoIdAndUserIdAndState(@Param("video_id") int videoId, @Param("user_id") int userId, @Param("state") int state);
    int insertOne(VideoOrder videoOrder);
    List<VideoOrder> findByUserId(@Param("user_id") int userId, @Param("state") int state);
}
